<!DOCTYPE html>
<html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd" class="_Skins_HTML5___Top_Navigation" lang="en-us" xml:lang="en-us" data-mc-search-type="Stem" data-mc-help-system-file-name="Default.xml" data-mc-path-to-help-system="../../" data-mc-has-content-body="True" data-mc-target-type="WebHelp2" data-mc-runtime-file-type="Topic;Default" data-mc-preload-images="false" data-mc-in-preview-mode="false" data-mc-toc-path="[%=System.LinkedTitle%]">
    <head>
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <meta charset="utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link href="../../Skins/Default/Stylesheets/Slideshow.css" rel="stylesheet" type="text/css" data-mc-generated="True" />
        <link href="../../Skins/Default/Stylesheets/TextEffects.css" rel="stylesheet" type="text/css" data-mc-generated="True" />
        <link href="../../Skins/Default/Stylesheets/Topic.css" rel="stylesheet" type="text/css" data-mc-generated="True" />
        <link href="../../Skins/Default/Stylesheets/Components/Styles.css" rel="stylesheet" type="text/css" data-mc-generated="True" />
        <link href="../../Skins/Default/Stylesheets/Components/Tablet.css" rel="stylesheet" type="text/css" data-mc-generated="True" />
        <link href="../../Skins/Default/Stylesheets/Components/Mobile.css" rel="stylesheet" type="text/css" data-mc-generated="True" />
        <link href="../../Skins/Fluid/Stylesheets/foundation.6.2.3.css" rel="stylesheet" type="text/css" data-mc-generated="True" />
        <link href="../../Skins/Fluid/Stylesheets/Styles.css" rel="stylesheet" type="text/css" data-mc-generated="True" />
        <link href="../../Skins/Fluid/Stylesheets/Tablet.css" rel="stylesheet" type="text/css" data-mc-generated="True" />
        <link href="../../Skins/Fluid/Stylesheets/Mobile.css" rel="stylesheet" type="text/css" data-mc-generated="True" /><title>How to Build Nauta CLI</title>
        <link href="../Resources/Stylesheets/Styles.css" rel="stylesheet" type="text/css" />
        <script src="../../Resources/Scripts/custom.modernizr.js" type="text/javascript">
        </script>
        <script src="../../Resources/Scripts/jquery.min.js" type="text/javascript">
        </script>
        <script src="../../Resources/Scripts/require.min.js" type="text/javascript">
        </script>
        <script src="../../Resources/Scripts/require.config.js" type="text/javascript">
        </script>
        <script src="../../Resources/Scripts/foundation.6.2.3_custom.js" type="text/javascript">
        </script>
        <script src="../../Resources/Scripts/plugins.min.js" type="text/javascript">
        </script>
        <script src="../../Resources/Scripts/MadCapGlobal.js" type="text/javascript">
        </script>
        <script src="../../Resources/Scripts/MadCapDom.js" type="text/javascript">
        </script>
        <script src="../../Resources/Scripts/MadCapUtilities.js" type="text/javascript">
        </script>
        <script src="../../Resources/Scripts/MadCapXhr.js" type="text/javascript">
        </script>
        <script src="../../Resources/Scripts/MadCapTextEffects.js" type="text/javascript">
        </script>
        <script src="../../Resources/Scripts/MadCapSlideshow.js" type="text/javascript">
        </script>
        <script src="../../Resources/Scripts/MadCapFeedback.js" type="text/javascript">
        </script>
        <script src="../../Resources/Scripts/MadCapDefault.js" type="text/javascript">
        </script>
        <script src="../../Resources/Scripts/MadCapHelpSystem.js" type="text/javascript">
        </script>
        <script src="../../Resources/Scripts/MadCapToc.js" type="text/javascript">
        </script>
        <script src="../../Resources/Scripts/MadCapToc.Breadcrumbs.js" type="text/javascript">
        </script>
        <script src="../../Resources/Scripts/MadCapToc.MiniToc.js" type="text/javascript">
        </script>
        <script src="../../Resources/Scripts/MadCapToc.SideMenu.js" type="text/javascript">
        </script>
        <script src="../../Resources/Scripts/MadCapIndex.js" type="text/javascript">
        </script>
        <script src="../../Resources/Scripts/MadCapGlossary.js" type="text/javascript">
        </script>
        <script src="../../Resources/Scripts/MadCapParser.js" type="text/javascript">
        </script>
        <script src="../../Resources/Scripts/MadCapSearch.js" type="text/javascript">
        </script>
        <script src="../../Resources/Scripts/MadCapTopic.js" type="text/javascript">
        </script>
    </head>
    <body>
        <div class="foundation-wrap off-canvas-wrapper">
            <div class="off-canvas-wrapper-inner" data-off-canvas-wrapper="">
                <aside class="off-canvas position-left" id="offCanvas" data-off-canvas="" data-position="left" data-mc-ignore="true">
                    <ul class="off-canvas-drilldown vertical menu off-canvas-list" data-drilldown="" data-mc-back-link="Back" data-mc-css-tree-node-expanded="is-drilldown-submenu-parent" data-mc-css-tree-node-collapsed="is-drilldown-submenu-parent" data-mc-css-sub-menu="vertical menu slide-in-left is-drilldown-submenu" data-mc-include-indicator="False" data-mc-include-icon="False" data-mc-include-parent-link="True" data-mc-include-back="True" data-mc-defer-expand-event="True" data-mc-expand-event="click.zf.drilldown" data-mc-toc="True">
                    </ul>
                </aside>
                <div class="off-canvas-content inner-wrap" data-off-canvas-content="">
                    <div data-sticky-container="" class="title-bar-container">
                        <nav class="title-bar tab-bar sticky" data-sticky="" data-options="marginTop:0" style="width:100%" data-sticky-on="only screen and (max-width: 1000px)" data-mc-ignore="true">
                            <div class="middle title-bar-section outer-row clearfix">
                                <div class="menu-icon-container relative clearfix">
                                    <button class="menu-icon" data-toggle="offCanvas"><span></span>
                                    </button>
                                </div>
                            </div>
                            <div class="title-bar-layout outer-row">
                                <div class="logo-wrapper"><a class="logo" href="index.htm" alt="Logo"></a>
                                </div>
                                <div class="navigation-wrapper nocontent">
                                    <ul class="navigation clearfix" data-mc-css-tree-node-has-children="has-children" data-mc-css-sub-menu="sub-menu" data-mc-expand-event="mouseenter" data-mc-top-nav-menu="True" data-mc-max-depth="3" data-mc-include-icon="False" data-mc-include-indicator="False" data-mc-include-children="True" data-mc-include-siblings="True" data-mc-include-parent="True" data-mc-toc="True">
                                        <li class="placeholder" style="visibility:hidden"><a>placeholder</a>
                                        </li>
                                    </ul>
                                </div>
                                <div class="nav-search-wrapper">
                                    <div class="nav-search row">
                                        <form class="search" action="#">
                                            <div class="search-bar search-bar-container needs-pie">
                                                <input class="search-field needs-pie" type="search" placeholder="Search" />
                                                <div class="search-filter-wrapper">
                                                    <div class="search-filter">
                                                        <div class="search-filter-content">
                                                            <ul>
                                                                <li>All Files</li>
                                                            </ul>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="search-submit-wrapper" dir="ltr">
                                                    <div class="search-submit" title="Search">
                                                    </div>
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </nav>
                    </div>
                    <section class="main-section">
                        <div class="row outer-row sidenav-layout">
                            <div class="sidenav-wrapper">
                                <div class="sidenav-container">
                                    <ul class="off-canvas-accordion vertical menu sidenav" data-accordion-menu="" data-mc-css-tree-node-expanded="is-accordion-submenu-parent" data-mc-css-tree-node-collapsed="is-accordion-submenu-parent" data-mc-css-sub-menu="vertical menu accordion-menu is-accordion-submenu nested" data-mc-include-indicator="False" data-mc-include-icon="False" data-mc-include-parent-link="False" data-mc-include-back="False" data-mc-defer-expand-event="True" data-mc-expand-event="click.zf.accordionMenu" data-mc-toc="True" data-mc-side-nav-menu="True">
                                    </ul>
                                </div>
                            </div>
                            <div class="body-container" data-mc-content-body="True">
                                <h1>How to Build Nauta CLI</h1>
                                <h2>Ubuntu 16.04 LTS</h2>
                                <ul>
                                    <li value="1">python 3.6</li>
                                    <li value="2">python 3.6-dev</li>
                                    <li value="3">python 3.6-venv</li>
                                    <li value="4">build-essential</li>
                                    <li value="5">binutils</li>
                                    <li value="6">curl</li>
                                </ul>
                                <p>Enter the commands listed below, in the order listed:</p>
                                <ol>
                                    <li value="1"><span style="font-family: 'Courier New';">$ sudo add-apt-repository ppa:deadsnakes/ppa</span>
                                    </li>
                                    <li value="2"><span style="font-family: 'Courier New';">$ sudo apt-get update</span>
                                    </li>
                                    <li value="3"><span style="font-family: 'Courier New';">$ sudo apt-get install python3.6 python3.6-dev python3.6-venv make binutils</span>
                                    </li>
                                </ol>
                                <h2>Ubuntu 18.04.1 LTS</h2>
                                <ul>
                                    <li value="1">python 3.6</li>
                                    <li value="2">python 3-venv</li>
                                    <li value="3">python 3-dev</li>
                                    <li value="4">binutils</li>
                                    <li value="5">build-essential</li>
                                    <li value="6">curl</li>
                                </ul>
                                <p>Enter the commands listed below in the order listed:</p>
                                <ol>
                                    <li value="1"><span style="font-family: 'Courier New';">$ sudo apt update</span>
                                    </li>
                                    <li value="2"><span style="font-family: 'Courier New';">$ sudo apt install python3-venv python3-dev binutils build-essential</span>
                                    </li>
                                </ol>
                                <h2>MacOS High Sierra</h2>
                                <ul>
                                    <li value="1">python 3.6</li>
                                    <li value="2">python 3-venv</li>
                                    <li value="3">python 3-dev</li>
                                    <li value="4">binutils</li>
                                    <li value="5">make</li>
                                    <li value="6">curl</li>
                                    <li value="7">docker</li>
                                </ul>
                                <h2>Windows 10</h2>
                                <ul>
                                    <li value="1">python 3.6.5 64-bit (<a href="https://www.python.org/ftp/python/3.6.5/python-3.6.5-amd64.exe">https://www.python.org/ftp/python/3.6.5/python-3.6.5-amd64.exe</a>)</li>
                                    <li value="2">make (<a href="http://gnuwin32.sourceforge.net/packages/make.htm">http://gnuwin32.sourceforge.net/packages/make.htm</a>)</li>
                                    <li value="3">7-zip (<a href="https://www.7-zip.org/">https://www.7-zip.org/</a>)</li>
                                    <li value="4">wget (h<a href="ttps://eternallybored.org/misc/wget/">ttps://eternallybored.org/misc/wget/</a>)</li>
                                    <li value="5">MSYS2 (<a href="http://www.msys2.org/">http://www.msys2.org/</a>)</li>
                                    <li value="6">git (<a href="https://git-scm.com/download/win">https://git-scm.com/download/win</a>)</li>
                                    <li value="7">docker (<a href="https://docs.docker.com/docker-for-windows/install/">https://docs.docker.com/docker-for-windows/install/</a>)</li>
                                    <li value="8">Windows 10 SDK (<a href="https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk">https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk</a>)</li>
                                </ul>
                                <p>You should have these tools (except Windows SDK) available system-wide via command-line (add them to PATH).</p>
                                <h3>Proxy settings</h3>
                                <p>Also, remember about setting <span style="font-family: 'Courier New';">http_proxy</span>, <span style="font-family: 'Courier New';">https_proxy</span> and <span style="font-family: 'Courier New';">no_proxy</span> environment variables, if you're behind a proxy. The variable <span style="font-family: 'Courier New';">no_proxy</span> should include in particular 127.0.0.1 and localhost.</p>
                                <h3>Build</h3>
                                <p>Be sure that development requirements above are fulfilled and in <span style="font-family: 'Courier New';">applications/cli</span> directory run make build. Artifacts will be available in the dist directory, including nctl binary. If you wish to rebuild nctl after making changes, you can invoke make clean build (it cleans only dist and build directory). or trigger make full_clean build to also recreate the .venv directory.</p>
                                <p>If you want to create a tar.gz package with nctl you should invoke <span style="font-family: 'Courier New';">make nctl-buil</span>d from the main directory in the repository. After a successful build, the tar.gz file can be found in <span style="font-family: 'Courier New';">applications/cli</span> directory. The package contains the nctl binary and all dependencies, such as helm, draft etc. Also, docs and examples directories will be available.</p>
                                <h4>Available make Commands and Targets</h4>
                                <p><span style="font-family: 'Courier New';">make clean</span> - removes build artifacts only</p>
                                <p><span style="font-family: 'Courier New';">make full_clean</span> - removes build artifacts and virtual env</p>
                                <p><span style="font-family: 'Courier New';">make buil</span>d - builds cli app</p>
                                <p><span style="font-family: 'Courier New';">make venv</span> - creates .venv with all modules required by nctl</p>
                                <p><span style="font-family: 'Courier New';">make venv-dev</span> - internal target used by makefiles</p>
                            </div>
                        </div>
                    </section><a data-close="true"></a>
                </div>
            </div>
            <script>/* <![CDATA[ */$(document).foundation();/* ]]> */</script>
        </div>
    </body>
</html>
